home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Tele / D-F / DialScript 1.6 / Examples / time.ds < prev    next >
Encoding:
Text File  |  1991-10-04  |  603 b   |  29 lines  |  [TEXT/dIsR]

  1. -- I run this script as a test when I am already logged in.
  2.  
  3. -- It depends on "burr" being part of my prompt.
  4.  
  5. script time
  6.  
  7.    state one
  8.      display "This will not timeout (if burr is in your prompt)";
  9.      send "\r";
  10.      select
  11.         "burr":  display "See, I told you.";
  12.         timeout 3: display "woops: I bet your prompt is different.";
  13.      end;
  14.      next two;
  15.    end;
  16.  
  17.    state two
  18.     display "This will timeout";
  19.      send "\r";
  20.      select
  21.         "XXX":  display "woops";
  22.         timeout 3: display "I told you.";
  23.      end;
  24.      stop;
  25.      display "you should not see this";
  26.    end;
  27.  
  28. end;
  29.